package com.gamerole.app.service

import com.aisier.network.entity.ApiResponse
import com.gamerole.app.entity.ArticleBean
import com.gamerole.app.entity.UpSearchBean
import com.gamerole.app.entity.UpSearchResponse
import com.gamerole.commom.entity.PageBean
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query

interface HttpService {
    //st=1&order=0&season_version=-1&spoken_language_type=-1&area=-1&is_finish=-1&copyright=-1&season_status=-1&season_month=-1
// &year=-1&style_id=-1&sort=0&page=1&season_type=1&pagesize=20&type=1
//st=1&order=0&season_version=-1&spoken_language_type=-1&is_finish=-1&copyright=-1&area=-1&release_date=-1&season_status=-1&season_month=-1&
// style_id=-1&year=-1&sort=0&page=0&season_type=1&pagesize=30&type=1
    @GET("pgc/season/index/result?st=1&order=4&season_version=-1&spoken_language_type=-1&area=-1&is_finish=-1&copyright=-1&season_status=-1&season_month=-1&year=-1&style_id=-1&sort=0&type=1")
    suspend fun getWxArticle(
        @Query("page") page: Int = 1,
        @Query("pagesize") pagesize: Int = 20,
        @Query("season_type") season_type: Int = 1,
    ): ApiResponse<PageBean<ArticleBean>>

    @GET("https://upapi.juapp9.com/search?s_type=2")
    suspend fun searchUpPan(
        @Query("page") page: Int = 1,
        @Query("keyword") keyword: String,
    ): UpSearchResponse<PageBean<UpSearchBean>>

}